import { createRouter, createWebHashHistory } from 'vue-router';
import Login from '@/views/login/login.vue';
import main from "@/views/layout/main.vue";
import Home from '@/views/home/home.vue';
import About from '@/views/about/about.vue';

const routes = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/login',
            component: Login
        },
        {
            path: '/',
            component: main,
            children: [
                {
                    path: '',
                    component: Home
                },
                {
                    path: '/about',
                    component: About
                }
            ]
        },
    ]
})

export default routes;
